<template>
	<view class="all">
		<view @click="denglu"> 微信登录 </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			denglu() {
				uni.login({
				  provider: 'weixin', 
				  success: function (loginRes) {
				    console.log(loginRes.authResult);
				  },
				  fail(res) {
				  	console.log('res',res);
				  }
				});
			},
		}
	}
</script>

<style lang="less">

</style>
